@include('parent');


 <div class="rt_content" style="height:100%;">
  <section class="rt_wrap content mCustomScrollbar">
    <div class="rt_content">
<script language="javascript">  
$(function(){  
    $(document).area("s_province","s_city","s_county");//调用插件  
}); 
 alert($cate);
</script> 
<section class="rt_wrap content mCustomScrollbar">
 <div class="rt_content">
     <!--开始：以下内容则可删除，仅为素材引用参考-->
     <h1 style="color:red;font-size:20px;font-weight:bold;text-align:center;">瓜子二手车后台</h1>
     <p style="color:red;font-size:16px;font-weight:bold;text-align:center;">车主信息审核<br/></p>

     <!--结束：弹出框效果-->
     
<h2><strong style="color:grey; ">添加车辆信息</strong></h2>
<form action="{{url('addcar')}}" method="post" enctype="multipart/form-data" style="height:100%";>
 {!!csrf_field()!!}
<div class="pop_cont_input">
   <ul>
      <li>
      <p class="link_btn" id="showPopTxt" >选择城市</p>
      <span class="ttl"></span>
     <select id="s_province" name="s_province"></select>    
      <select id="s_city" name="s_city" ></select>    
      <select id="s_county" name="s_county"></select> 
      </li>
          <br>
      <li>
      <p class="link_btn" id="showPopTxt">选择车系</p>

          <select name="car_brand" id="pingpai" >
         <option>车辆品牌</option>
          @foreach($cate as $c) 
           <option abc="{{$c->cate_name}}" value="{{$c->cate_id}}">{{$c->cate_name}}
           </option>
          @endforeach          
 
          </select>
          <select name="car_chexi" id="chexi">
           <option>车系</option>
          </select>
          <select name="car_type">
           <option>车辆分类</option>
           <option value="4">两厢轿车</option>
           <option value="3">三厢轿车</option>
           <option value="2">跑车</option>
           <option value="0">SUV</option>
           <option value="1">MPV</option>

          </select>
         </li>
        
    </ul>
</div>
  
      <h2><strong style="color:grey;">车辆详细信息</strong></h2>
      <ul class="ulColumn2">
            <li>
              <span class="item_name"  style="width:120px;">汽车名:</span>
              <input type="text" name="car_name"  class="textbox textbox_295" placeholder="文本信息提示..."/
             </li>
              <li>
              <span class="item_name"  style="width:120px;">汽车车源号:</span>
              <input type="text" name="car_cyh"  class="textbox textbox_295" value="{{$car_cyh[0]}}"/>
             </li>
             <li>
              <span class="item_name" style="width:120px;">汽车制造国家:</span>
              <input type="text" name="car_mide" class="textbox textbox_295" placeholder="文本信息提示..."/
             </li>
             <li>
              <span class="item_name" style="width:120px;">变速箱类型:</span>
              <input type="text" name="car_biansu" class="textbox textbox_295" placeholder="文本信息提示..."/
             </li>
             <li>
              <span class="item_name" style="width:120px;">汽车现售价:</span>
              <input type="text" name="car_price" class="textbox textbox_295" placeholder="文本信息提示..."/
             </li>
             <li>
              <span class="item_name" style="width:120px;">汽车原价:</span>
              <input type="text" name="car_reprice" class="textbox textbox_295" placeholder="文本信息提示..."/
             </li>
             <li>
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<p class="link_btn" id="showPopTxt">选择价格范围</p>
              <select name="pricefanwei">
                <option>范围</option>
               <option value="1">5万以下</option>
               <option value="2">5万-10万</option>
               <option value="3">10万-15万</option>
               <option value="4">15万-20万</option>
               <option value="5">20万-30万</option>
               <option value="6">30万-40万</option>
               <option value="7">40万-60万</option>
               <option value="8">60万以上</option>
              </select>
             </li>
             <li>
              <span class="item_name" style="width:120px;">汽车行驶里程:</span>
              <input type="text" name="car_licheng" class="textbox textbox_295" placeholder="文本信息提示..."/
             </li>
             <li>
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<p class="link_btn" id="showPopTxt">选择颜色</p>
              <select name="car_color">
                <option>车辆颜色</option>
               <option value="红色">红色</option>
               <option value="黑色">黑色</option>
               <option value="蓝色">蓝色</option>
               <option value="白色">白色</option>
              </select>
             </li>
             <li>
              <span class="item_name" style="width:120px;">汽车排量:</span>
              <input type="text" name="car_pai" class="textbox textbox_295" placeholder="文本信息提示..."/
             </li>
             <li>
              <span class="item_name" style="width:120px;">排放标准:</span>
              <input type="text" name="car_biaozhun" class="textbox textbox_295" placeholder="文本信息提示..."/
             </li>
             <li>
              <span class="item_name" style="width:120px;">上牌时间:</span>
              <input type="text" name="car_sp" class="textbox textbox_295" placeholder="文本信息提示..."/
             </li>
              <li>
              <span class="item_name" style="width:120px;">车龄:</span>
              <input type="text" name="car_age" class="textbox textbox_295" placeholder="文本信息提示..."/
             </li>
            <li>
            <span class="item_name" style="width:120px;">
            图片路径:
            </span>
            <input type="file" name="car_img" placeholder=""/>
            </li>
            </ul>


        <select name="car_status">
           <option>车辆状态</option>
           <option>待审核</option>
           <option>已通过</option>
           <option>已售出</option>
        </select>
   

     
 
      <input type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;" class="group_btn" style="background:orange" />
   
     </form>

</div>
</div>

<script>

$('#pingpai').change(function(){
    var ur = "ld/" + this.value;
    //var op = '<option >' +  +'</option>'
    //alert(this.value);
    $.get(ur,function(res){
       // console.log(res);
       //alert(res.length);
       $('#chexi').html('');
      for(var o in res){
        // alert(o);
        // alert(res[o].cate_name);
        var op = '<option value = ' + res[o].cate_id + '>' + res[o].cate_name + '</option>';
        $('#chexi').append(op);
      }
    });
    // $("#ddl").find("option:selected").attr("emoney");
})

$('#pingpai').change(function(){
  var names =  $('#pingpai').find("option:selected").attr('abc');
  $('#pingpai').find("option:selected").val(names);
})


</script>

</body>
</html>